package com.molichuxing.service.impl;

import com.molichuxing.service.InvoiceJobService;
import com.molichuxing.services.infrastructure.service.InvoiceService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("invoiceJobService")
public class InvoiceJobServiceImpl implements InvoiceJobService {
    private static final Logger logger = LoggerFactory.getLogger(InvoiceJobServiceImpl.class);
    @Resource
    private InvoiceService invoiceService;


    /**
     * 修改发票状态
     *
     * @return
     */
    @Override
    public Boolean modifyInvoiceStatus() {
        try {
            return invoiceService.modifyStatus();
        } catch (Exception e) {
            logger.error("修改发票状态异常：", e);
            return false;
        }
    }

}
